package xyz.duolaf.myboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController //相当于@ResponseBody和@Controller组合,返回json
public class HelloController {

    @RequestMapping("/hello")   //url映射
    public String hello(){
        return "hello SpringBoot!";
    }
}
